package cn.com.victorysoft.ylgl.service.fracturingpressure.domain;

import cn.com.victorysoft.ylgl.service.commons.domain.BaseEntity;
import cn.com.victorysoft.ylgl.service.commons.json.DateToISODateTimeSerializer;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

/***
施工工艺明细
 */
public class ConstructionTechnologyChild extends BaseEntity {

    private String dataPid;

    private String intervalName;

    private String formationName;

    private String zone;

    private BigDecimal perfMdTop;

    private BigDecimal perfMdBase;

    private BigDecimal perfMdThk;

    private BigDecimal perfTvdThk;

    private BigDecimal perfSpan;

    private BigDecimal fractureIntervaMdTop;

    private BigDecimal fractureIntervaMdBase;

    private BigDecimal fractureIntervaMdThk;

    private BigDecimal fractureIntervaTvdThk;

    private BigDecimal fractureIntervaSpan;

    @DateTimeFormat(
            pattern = "yyyy-MM-dd"
    )
    private Date constructDate;


    public String getDataPid() {
        return dataPid;
    }

    public void setDataPid(String dataPid) {
        this.dataPid = dataPid == null ? null : dataPid.trim();
    }

    public String getIntervalName() {
        return intervalName;
    }

    public void setIntervalName(String intervalName) {
        this.intervalName = intervalName == null ? null : intervalName.trim();
    }

    public String getFormationName() {
        return formationName;
    }

    public void setFormationName(String formationName) {
        this.formationName = formationName == null ? null : formationName.trim();
    }

    public String getZone() {
        return zone;
    }

    public void setZone(String zone) {
        this.zone = zone == null ? null : zone.trim();
    }

    public BigDecimal getPerfMdTop() {
        return perfMdTop;
    }

    public void setPerfMdTop(BigDecimal perfMdTop) {
        this.perfMdTop = perfMdTop;
    }

    public BigDecimal getPerfMdBase() {
        return perfMdBase;
    }

    public void setPerfMdBase(BigDecimal perfMdBase) {
        this.perfMdBase = perfMdBase;
    }

    public BigDecimal getPerfMdThk() {
        return perfMdThk;
    }

    public void setPerfMdThk(BigDecimal perfMdThk) {
        this.perfMdThk = perfMdThk;
    }

    public BigDecimal getPerfTvdThk() {
        return perfTvdThk;
    }

    public void setPerfTvdThk(BigDecimal perfTvdThk) {
        this.perfTvdThk = perfTvdThk;
    }

    public BigDecimal getPerfSpan() {
        return perfSpan;
    }

    public void setPerfSpan(BigDecimal perfSpan) {
        this.perfSpan = perfSpan;
    }

    public BigDecimal getFractureIntervaMdTop() {
        return fractureIntervaMdTop;
    }

    public void setFractureIntervaMdTop(BigDecimal fractureIntervaMdTop) {
        this.fractureIntervaMdTop = fractureIntervaMdTop;
    }

    public BigDecimal getFractureIntervaMdBase() {
        return fractureIntervaMdBase;
    }

    public void setFractureIntervaMdBase(BigDecimal fractureIntervaMdBase) {
        this.fractureIntervaMdBase = fractureIntervaMdBase;
    }

    public BigDecimal getFractureIntervaMdThk() {
        return fractureIntervaMdThk;
    }

    public void setFractureIntervaMdThk(BigDecimal fractureIntervaMdThk) {
        this.fractureIntervaMdThk = fractureIntervaMdThk;
    }

    public BigDecimal getFractureIntervaTvdThk() {
        return fractureIntervaTvdThk;
    }

    public void setFractureIntervaTvdThk(BigDecimal fractureIntervaTvdThk) {
        this.fractureIntervaTvdThk = fractureIntervaTvdThk;
    }

    public BigDecimal getFractureIntervaSpan() {
        return fractureIntervaSpan;
    }

    public void setFractureIntervaSpan(BigDecimal fractureIntervaSpan) {
        this.fractureIntervaSpan = fractureIntervaSpan;
    }
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @JsonFormat(pattern="yyyy-MM-dd")
    public Date getConstructDate() {
        return constructDate;
    }

    @JsonSerialize(using = DateToISODateTimeSerializer.class)
    public void setConstructDate(Date constructDate) {
        this.constructDate = constructDate;
    }
}